<% include header_index.html %>
<link rel="stylesheet" href="images/default_wap/weui.css">
<style>

    .header{
        width: 100vw;
        background: white;
    }
    .header_div{
        width: 355px;
        margin: 0 auto;
    }
    .header_div img{
        width: 20px;
        height:20px;
        margin-top: 12px;
    }
    .header_div p{
        font-size: 15px;
        color: #181818;
        line-height: 44px;
        text-align: center;
    }
    .weui_cell{
        background: white;
    }
    body{
        background: rgb(243,243,243);
    }
    
    ::-webkit-scrollbar {/*隐藏滚轮*/
        display: none !important;
    }
    .mt10{
        margin-top: 10px;
    }
    .weui_cell_primary{
        min-width: 100px;
    }
    .msg_ico{
        width: 20px;
        margin-right: 10px;
    }
</style>
<div class="big_div">
    <div class="h44 header">
        <div class="header_div h44">
            <img src="images/default_wap/return.png" class="back fl" alt="">
            <img src="images/default_wap/moreblack.png" class="back fr" alt="">
            <p>
                联系详情
            </p>
        </div>
    </div>


  
    <!--滚动栏-->
    <div class="weui_cell mt10">
        <div class="weui_cell_bd weui_cell_primary">
            <p>联系人</p>
        </div>
        <div class="weui_cell_ft">{{name}}</div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary">
            <p>联系方式</p>
        </div>
        <div class="weui_cell_ft"> <a :href="'tel:'+tel"><img class="msg_ico" src="images/default_wap/phone.png" alt=""></a><img class="msg_ico" src="images/default_wap/msg.png" alt=""></div>
    </div>

    <div class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary">
            <p>联系地址</p>
        </div>
        <div class="weui_cell_ft">{{address}}</div>
    </div>


</div>

<script>
    var page = new Vue({
        el: '.big_div',
        data: {
            uid:'<%= uid %>',
            type:'<%= type %>',
            name:'',
            address:'',
            tel:''
        },
        methods:{
           
        },
        mounted:function(){
            var t=this;
            $.post('./msg_detail',{uid:this.uid,type:this.type},function(result){
                result=result.data;
                if(result==0){
                    window.location.href='./error?type=noknow';
                }
                else{
                    t.name=result[0].name;
                    t.address=result[0].address;
                    t.tel=result[0].tel;
                }
                
            });
        }
    });
   

</script>






<!--底部栏-->
<% include footer.html %>
